#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int n;
	while (~scanf("%d", &n))
	{
		int mul = 1;
		while (n--)
		{
			int num;
			scanf("%d", &num);
			if (num % 2 != 0)
			{
				mul = mul * num;
			}
			printf("%d\n", mul);
		}

		return 0;
	}
}
#include <stdio.h>
int main()
{
	int m;
	while (scanf("%d", &m) != EOF)
	{
		if (m >= 0 && m <= 100)
		{
			if (m >= 90 && m <= 100) printf("A\n");
			if (m >= 80 && m <= 89) printf("B\n");
			if (m >= 70 && m <= 79) printf("C\n");
			if (m >= 60 && m <= 69) printf("D\n");
			if (m >= 0 && m <= 59) printf("E\n");
		}
		else
			printf("Score is error!\n");

	}
	return 0;
}
#include<stdio.h>
#define PI 3.1415927
int main()
{
	double a, v;
	while (scanf("%lf", &a) == 1)
	{
		v = (4.0 / 3.0) * PI * a * a * a;
		printf("%.3lf\n", v);
	}
	return 0;
}

